﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Chefbook.HelperMethods;

namespace Chefbook.DataAccessLayer
{
    public partial class Ingredient
    {
        public Ingredient()
        {
            _Name = string.Empty;
            _Units = string.Empty;
        }
        partial void OnAmountChanging(decimal value)
        {
            ParameterValidation.ValidateArgument(() => value > 0, "Ingredient");
        }
    }
}
